package com.cangshi.dao;

import com.cangshi.entity.Order;

import java.util.List;

public interface OrderMapper {
    int deleteByPrimaryKey(Integer orderId);

    int insert(Order record);

    int insertSelective(Order record);

    Order selectByPrimaryKey(Integer orderId);

    Order selectByPrimaryKeyDeeply(Integer orderId);

    int updateByPrimaryKeySelective(Order record);

    int updateByPrimaryKey(Order record);

    List<Order> selectByUserId(Integer userId);

    List<Order> selectByGroupId(Integer groupId);

    List<Order> selectByOrderUserId(Integer orderUserId);

    Integer selectLastId();
}